package a.f.l;

import a.c.d;
import a.c.v;
import a.c.z;

class y
  extends x
{
  private int d;
  protected z j;
  public z k = new z();
  public z l = new z();
  protected boolean n;
  protected double o;
  protected double q;
  protected double r;
  protected double t;
  public z u;
  public z v;
  
  public y(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, boolean paramBoolean)
  {
    super(paramDouble1, paramDouble2, paramDouble3, paramDouble4, paramBoolean);
  }
  
  public void a(boolean paramBoolean)
  {
    this.n = paramBoolean;
  }
  
  public void a(double paramDouble)
  {
    this.o = paramDouble;
  }
  
  public void b(double paramDouble)
  {
    this.q = paramDouble;
  }
  
  public void a(z paramz)
  {
    this.u = paramz;
  }
  
  public void c(z paramz)
  {
    this.v = paramz;
  }
  
  public void c(double paramDouble)
  {
    this.r = paramDouble;
  }
  
  public void d(double paramDouble)
  {
    this.t = paramDouble;
  }
  
  public void a(int paramInt)
  {
    this.d = paramInt;
  }
  
  public boolean n()
  {
    return this.n;
  }
  
  public double o()
  {
    return this.o;
  }
  
  public double p()
  {
    return this.q;
  }
  
  public double q()
  {
    return this.r;
  }
  
  public double r()
  {
    return this.t;
  }
  
  public int s()
  {
    return this.d;
  }
  
  public z t()
  {
    return this.j;
  }
  
  public boolean u()
  {
    return this.j != null;
  }
  
  public void a(boolean paramBoolean, z paramz)
  {
    int i = g.Cc;
    if (i == 0)
    {
      if (paramBoolean)
      {
        if (i != 0) {
          break label35;
        }
        this.k.a(paramz);
      }
    }
    else if (g.Bc == 0) {
      return;
    }
    label35:
    this.l.a(paramz);
  }
  
  public void a(boolean paramBoolean, y paramy)
  {
    int i = g.Cc;
    if (i == 0) {
      if (paramBoolean)
      {
        this.k.add(paramy);
        if ((i == 0) && (g.Bc == 0)) {
          return;
        }
      }
    }
    this.l.add(paramy);
  }
  
  public void b(boolean paramBoolean, y paramy)
  {
    int m = g.Cc;
    int i = g.Bc;
    z localz = paramBoolean ? this.k : this.l;
    a.c.y localy = localz.h();
    do
    {
      while (i == 0)
      {
        if (!localy.e()) {
          break;
        }
        if ((m != 0) || (paramy == localy.j()))
        {
          localz.b(localy);
          if (m == 0) {
            if (i == 0) {
              break;
            }
          }
        }
        else
        {
          localy.f();
        }
      }
    } while (m != 0);
  }
  
  public void c(boolean paramBoolean)
  {
    z localz = paramBoolean ? this.k : this.l;
    localz.clear();
  }
  
  public void c(boolean paramBoolean, y paramy)
  {
    int m = g.Cc;
    int i = g.Bc;
    z localz1 = paramBoolean ? this.k : this.l;
    y localy1;
    z localz2;
    Object localObject;
    if (paramy == null)
    {
      localy = localz1.h();
      label137:
      do
      {
        if (!localy.e()) {
          break;
        }
        localy1 = (y)localy.j();
        localz2 = paramBoolean ? localy1.l : localy1.k;
        localObject = localz2.h();
        do
        {
          do
          {
            if (!((a.c.y)localObject).e()) {
              break label137;
            }
            y localy2 = (y)((a.c.y)localObject).j();
            if (i != 0) {
              break;
            }
            if (this == localy2) {
              localz2.b((a.c.y)localObject);
            }
            ((a.c.y)localObject).f();
          } while (i == 0);
          localy.f();
        } while (m != 0);
      } while (i == 0);
    }
    a.c.y localy = localz1.h();
    label252:
    do
    {
      if (!localy.e()) {
        break;
      }
      localy1 = (y)localy.j();
      do
      {
        localz2 = paramBoolean ? localy1.l : localy1.k;
        localObject = localz2.f();
        do
        {
          if (localObject == null) {
            break label252;
          }
          if (i != 0) {
            break;
          }
          if (this == (y)((v)localObject).c()) {
            localz2.a((v)localObject, paramy);
          }
          localObject = localz2.c((v)localObject);
        } while (i == 0);
        localy.f();
      } while (m != 0);
    } while (i == 0);
  }
  
  public void a(d paramd, double paramDouble, byte paramByte, boolean paramBoolean)
  {
    int i1 = g.Cc;
    int m = g.Bc;
    if ((i1 != 0) || ((paramDouble < h()) || (paramDouble > i()))) {
      return;
    }
    a_ locala_ = null;
    if ((i1 != 0) || (this.j == null))
    {
      this.j = new z();
      locala_ = new a_(paramd, paramDouble, paramByte, paramBoolean);
      this.j.add(locala_);
    }
    else
    {
      int i = 0;
      v localv = this.j.f();
      label194:
      do
      {
        do
        {
          if (localv == null) {
            break label197;
          }
          if (m != 0) {
            break label204;
          }
          if (i != 0) {
            break label197;
          }
          double d1 = ((a_)localv.c()).b;
          if (i1 != 0) {
            break label194;
          }
          if (d1 > paramDouble) {
            break;
          }
          localv = this.j.c(localv);
          if (i1 != 0) {
            break label194;
          }
        } while (m == 0);
        locala_ = new a_(paramd, paramDouble, paramByte, paramBoolean);
        localv = this.j.a(locala_, localv);
        i = 1;
      } while (m == 0);
      label197:
      if ((i1 == 0) && (i == 0))
      {
        label204:
        locala_ = new a_(paramd, paramDouble, paramByte, paramBoolean);
        this.j.add(locala_);
      }
    }
  }
  
  public void a(a_ parama_)
  {
    int i1 = g.Cc;
    int m = g.Bc;
    if ((i1 != 0) || ((parama_.b < h()) || (parama_.b > i()))) {
      return;
    }
    if (i1 == 0)
    {
      if (this.j == null) {
        this.j = new z();
      }
    }
    else
    {
      this.j.add(parama_);
      if ((i1 == 0) && (m == 0)) {
        return;
      }
    }
    int i = 0;
    v localv = this.j.f();
    label158:
    label192:
    label252:
    label254:
    do
    {
      do
      {
        do
        {
          double d1;
          do
          {
            if (localv == null) {
              break label257;
            }
            if (m != 0) {
              break label263;
            }
            if (i != 0) {
              break label257;
            }
            d1 = ((a_)localv.c()).b;
            if (i1 != 0) {
              break label158;
            }
            if (d1 >= parama_.b) {
              break;
            }
            localv = this.j.c(localv);
          } while ((i1 == 0) && (m == 0));
          if (i1 == 0)
          {
            if (d1 <= parama_.b) {
              break;
            }
            if (i1 != 0) {
              break label192;
            }
            localv = this.j.a(parama_, localv);
            i = 1;
          }
        } while (m == 0);
        a_ locala_ = (a_)localv.c();
        if (i1 != 0) {
          break label252;
        }
        if (locala_.a != parama_.a) {
          break;
        }
        if (i1 != 0) {
          break label254;
        }
        if (locala_.e != parama_.e) {
          break;
        }
        i = 1;
        if (i1 != 0) {
          break label254;
        }
      } while (m == 0);
      localv = this.j.c(localv);
    } while (m == 0);
    label257:
    if ((i1 == 0) && (i == 0)) {
      label263:
      this.j.add(parama_);
    }
  }
  
  public void a(d paramd, double paramDouble, boolean paramBoolean)
  {
    int i1 = g.Cc;
    int m = g.Bc;
    if (this.j == null) {
      return;
    }
    int i = 0;
    a.c.y localy = this.j.h();
    do
    {
      if ((!localy.e()) || (i != 0)) {
        break;
      }
      a_ locala_ = (a_)localy.j();
      if (i1 == 0)
      {
        if (paramd == locala_.a)
        {
          if (i1 != 0) {
            continue;
          }
          if (paramDouble == locala_.b)
          {
            if (i1 != 0) {
              continue;
            }
            if (paramBoolean == locala_.e)
            {
              this.j.b(localy);
              i = 1;
            }
          }
        }
        localy.f();
      }
    } while (m == 0);
  }
  
  public void b(a_ parama_)
  {
    int i1 = g.Cc;
    int m = g.Bc;
    if (this.j == null) {
      return;
    }
    int i = 0;
    a.c.y localy = this.j.h();
    do
    {
      if ((!localy.e()) || (i != 0)) {
        break;
      }
      a_ locala_ = (a_)localy.j();
      if (i1 == 0)
      {
        if (parama_ == locala_)
        {
          this.j.b(localy);
          i = 1;
        }
        localy.f();
      }
    } while (m == 0);
  }
  
  public void d(boolean paramBoolean)
  {
    int i = g.Cc;
    if (i == 0)
    {
      if (paramBoolean)
      {
        if (i != 0) {
          break label35;
        }
        this.o = h();
      }
    }
    else if (g.Bc == 0) {
      return;
    }
    label35:
    this.q = i();
  }
  
  static class a_
  {
    public d a;
    public double b;
    public byte d;
    public boolean e;
    
    a_(d paramd, double paramDouble, byte paramByte, boolean paramBoolean)
    {
      this.a = paramd;
      this.b = paramDouble;
      this.d = paramByte;
      this.e = paramBoolean;
    }
    
    public String toString()
    {
      return "[e=" + this.a + "; coord=" + this.b + "; side=" + this.d + "; sourceEnd=" + this.e + "]";
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.l.y
 * JD-Core Version:    0.7.0.1
 */